﻿using SCM.Common;
using SqlSugar;

namespace SCM.Model.DBEntity
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("T_User")]
    public class T_User:EntityBase
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 企业ID
        /// </summary>
        public string CompanyID { get; set; }

        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserAccount { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserDisplayName { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string UserPassword { get; set; }

        /// <summary>
        /// 初始化用户
        /// </summary>
        public UserTypeEnum UserType { get; set; }

        /// <summary>
        /// 初始化用户
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string UserTypeStr { get { return EnumHelper.GetDescription(UserType); } }
    }
}
